import request from '@/utils/request'

// 添加舆情监控记录
export function dutyRecordMonitoringAdd(data) {
  return request({
    url: '/dutyRecordMonitoringApi/add',
    method: 'post',
    data
  })
}

export function listRecordMonitoring(query) {
  return request({
    url: '/dutyRecordMonitoringApi/list',
    method: 'get',
    params: query
  })
}

// 查询舆情监控记录详细
export function getMonitoring(id) {
  return request({
    url: '/dutyRecordMonitoringApi/' + id,
    method: 'get'
  })
}
// 更新
export function updateDutyRecordMonitoring(data) {
  return request({
    url: '/dutyRecordMonitoringApi/edit',
    method: 'post',
    data
  })
}

// 删除
// 删除舆情监控记录
export function delMonitoring(query) {
  return request({
    url: '/dutyRecordMonitoringApi/delete',
    method: 'get',
    params: query
  })
}
